﻿@model JinianNet.JNCms.Models.Article
@{ var Category = (JinianNet.JNCms.Models.Category)ViewData["Category"];}
<!DOCTYPE html>
<html>
<head>
    <title>@Model.Title - @JinianNet.JNCms.Config.Site.Name</title>
    @JinianNet.Web.ResourceManager.Script.Render("Manage/Base")
    @JinianNet.Web.ResourceManager.Script.Render("Editor")
    @JinianNet.Web.ResourceManager.Style.Render("Manage/Base")
    <script type="text/javascript">
        $(function () {
            CKEDITOR.replace("Content", { width: '100%' });
        });
    </script>
</head>
<body>
    @{
        var textAreaDictionary = new Dictionary<string, object>();
        textAreaDictionary.Add("cols", 50);
        textAreaDictionary.Add("row", 3);
    }
    @using (Html.BeginForm())
    { 
         <table width="95%" align="center" border="0" cellspacing="0" cellpadding="0" class="biggrid">
            <tr>
                <th colspan="2" align="left">&nbsp;</th>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">标　　题</td>
                <td><input class="input" type="text" id="Title" name="Title" value="@Model.Title" maxlength="100" /> *<input class="input" value="@Model.ID" type="hidden" id="ID" name="ID" /></td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">栏　　目</td>
                <td>&nbsp;&nbsp;@Model.ChannelName <input type="hidden" id="ChannelName" name="ChannelName" value="@Model.ChannelName" /><input type="hidden" id="ChannelID" name="ChannelID" value="@Model.ChannelID" /></td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">关 键 词</td>
                <td><input class="input" type="text" id="KeyWords" name="KeyWords" value="@Model.KeyWords" maxlength="150" /></td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">描　　述</td>
                <td><textarea class="textarea" id="Description" name="Description" cols="50" rows="3" >@Model.Description</textarea></td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">标　　签</td>
                <td><input class="input" type="text" id="Tag" name="Tag" value="@Model.Tag" maxlength="100" /></td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">文章别名</td>
                <td><input class="input" type="text" id="KeyName" name="KeyName" value="@Model.KeyName" maxlength="50" /></td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">模板文件</td>
                <td><input class="input" type="text" id="TempLate" name="TempLate" value="@Model.TempLate" maxlength="50" /></td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">发布时间</td>
                <td><input class="disabled" type="text" id="CreateTime" name="CreateTime" readonly="readonly" value="@Model.CreateTime" maxlength="50" /></td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">最后编辑</td>
                <td><input class="disabled" type="text" id="EditTime" name="EditTime" readonly="readonly" value="@Model.EditTime" maxlength="50" /></td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">来　　源</td>
                <td><input class="input" type="text" id="Source" name="Source" value="@Model.Source" maxlength="50" /></td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">作　　者</td>
                <td><input class="input" type="text" id="Author" name="Author" value="@Model.Author" maxlength="10" /></td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">编　　辑</td>
                <td><input class="input" type="text" readonly="readonly" id="Editor" name="Editor" value="@Model.Editor" maxlength="10" /></td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">点　　击</td>
                <td><input class="disabled" type="text" id="Click" name="Click" readonly="readonly" maxlength="8" value="@Model.Click" /></td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">属　　性</td>
                <td>
                    <input type="checkbox" class="cbxcheck" name="IsUrl" id="IsUrl" @(Model.IsUrl ? "checked=\"checked\"":"")/><label for="IsUrl">是否外链</label>
                    <input type="checkbox" class="cbxcheck" id="IsNeedPassword" name="IsNeedPassword" @(Model.IsNeedPassword ? "checked=\"checked\"":"")/><label for="IsNeedPassword">需要密码</label>
                    <input type="checkbox" class="cbxcheck" id="IsLock" name="IsLock" @(Model.IsLock ? "checked=\"checked\"":"")/><label for="IsLock">锁定内容</label>
                    <input type="checkbox" class="cbxcheck" id="IsImg" name="IsImg" @(Model.IsImg ? "checked=\"checked\"":"")/><label for="IsImg">图片文章</label>
                </td>
            </tr>
            <tr id="trPassword">
                <td align="center" width="150" class="tm">密　　码</td>
                <td><input class="input" type="text" id="Password" name="Password" maxlength="50" value="@Model.Password" /></td>
            </tr>
            <tr id="trUrl">
                <td align="center" width="150" class="tm">外链地址</td>
                <td><input class="input" type="text" id="Url" name="Url" maxlength="50" value="@Model.Url" /></td>
            </tr>
            <tr id="trSrc">
                <td align="center" width="150" class="tm">图片地址</td>
                <td><input class="input" type="text" id="Src" name="Src" maxlength="50" value="@Model.Src" /></td>
            </tr>
            <tr>
                <td align="center" width="150" class="tm">内　　容</td>
                <td><textarea class="textarea" id="Content" name="Content" cols="50" rows="3" >@(new MvcHtmlString(Model.Content))</textarea></td>
            </tr>
            <tr>
                <td align="center" colspan="2">
                    <input type="submit" value="保存" />
                    <input type="button" value="返回上页" onclick="history.back()" /></td>
            </tr>
        </table>
    }
</body>
</html>
